<layout name="../application/common/view/base.html" />
<div class="main-content">
    <!-- 访问授权 -->
    <form action="{$savePostUrl}" method="post" class="form-horizontal ajax-form-access">
        <volist name="nodes" id="node">
            <div class="col-md-12">

                <div class="panel panel-color  collapsed">
                    <div class="panel-heading">
                        <label class='cbr-inline'>
                            <input type="checkbox" class='cbr cbr-replaced cbr-info  checkbox-select-all' name="access" value="{$node.id}"  <if condition="$node.isaccess eq 1">checked</if>>
                           {$node.name}
                        </label>

                        <div class="panel-options">
                            <a href="#">
                                <i class="linecons-cog"></i>
                            </a>
                            <a href="#" data-toggle="panel">
                                <span class="collapse-icon">&ndash;</span>
                                <span class="expand-icon">+</span>
                            </a>
                        </div>
                    </div>

                    <div class="panel-body">
                        <volist name="$node.pid" id="sub">
                            <label class="cbr-inline ">
                                <input type="checkbox" class="cbr cbr-replaced cbr-info" name="access" value="{$sub.id}" <if condition="$sub.isaccess eq 1">checked</if> >
                                {$sub.name}
                            </label>
                        </volist>
                    </div>
                </div>

            </div>
        </volist>
        <input type="hidden" name="groupId" class="group-id" value="{$groupId}">
        <button class="btn submit-btn ajax-form-access btn-success  btn-right" type="submit" id="submit" target-form="form-horizontal">保存</button>  &nbsp;
    </form>

    <!-- 成员授权 -->
</div>